<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>广告详情</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">

    <meta http-equiv="Pragma"    content="no-cache"/>
     
    <meta http-equiv="Cache-Control"    content="no-cache"/>
     
    <meta http-equiv="Expires"    content="0"/>

    <link rel="stylesheet" href="/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="/layui/style/admin.css" media="all"/>
    <link rel="stylesheet" href="/css/advertisement/advertisement.css" media="all"/>
</head>
<body class="childrenBody">

    <blockquote class="layui-elem-quote news_search">
        <div class="layui-inline queryTable">
            <div class="layui-input-inline">
                <input name="batchName" type="text" value="" placeholder="请输入批次名" autocomplete="off" class="layui-input search_input">
            </div>
            <div class="layui-input-inline">
                <select name="status" class="layui-select-group">
                    <option value="">全部</option>
                    <option value="0">未配置广告</option>
                    <option value="1">未配设备</option>
                    <option value="2">可推送</option>
                    <option value="3">推送成功</option>
                    <option value="-1">推送失败</option>
                </select>
            </div>
            <a class="layui-btn search_btn ">查询</a>
            <button type="button" class="layui-btn task_push">创建推送任务</button>
        </div>
    </blockquote>

    <!--批次表格-->
    <table class="layui-hide" id="ad_list_table" lay-filter="ad_list_table"></table>

    <!--配置广告弹出层开始-->
    <div id="edit_ad" style="display: none;">
        <!--查询开始-->
        <blockquote class="layui-elem-quote news_search">
            <div class="layui-inline queryImg">
                <span>文件标题</span>
                <input type="text" placeholder="请输入标题"/>
                <select value="" class="layui-select-group checkType">
                    <option value="">全部</option>
                    <option value="image">图片</option>
                    <option value="video">视频</option>
                </select>
                <a class="layui-btn search_btn_img ">查询</a>
                <button type="button" class="layui-btn ad_placement">配置广告保存</button>
            </div>
        </blockquote>
        <!--查询结束-->

        <div class="layui-row">
            <div class="layui-col-sm12">
                <div class="layui-upload-list display" id="edit_display" style="height: 480px"></div>
            </div>
        </div>
        <!--分页容器-->
        <div id="pageContent">

        </div>
    </div>

    <!--配置设备弹出层开始-->
    <div id="edit_ter" style="display: none;" >
        <blockquote class="layui-elem-quote news_search">
            <div class="layui-inline queryImg">
                <span>选择推送设备</span>
                <button type="button" class="layui-btn ad_equipment">配置设备保存</button>
                <div class="checkbox_all">
                    <i class="layui-icon layui-icon-ok checkbox_all_but"></i>
                    <span>全选</span>
                </div>
        </blockquote>
        <!--设备表格数据-->
        <table class="layui-hide" id="add_task_push_table" lay-filter="ad_list_table"></table>
    </div>

    <!--广告详情弹出层开始-->
    <div id="info_div" style="display: none;" >
        <!--成放盒子-->
        <div class="layui-row">
            <div class="layui-col-sm12">
                <div class="layui-upload-list display" id="img_display"></div>
            </div>
        </div>
    </div>

    <!--创建推送任务弹出层-->
    <div id="add_task_push" style="display: none">
        <blockquote class="layui-elem-quote news_search">
            <div class="layui-inline preservation_box">
                <span>输入推送批次名</span>
                <input type="text" placeholder="输入推送批次">
                <button type="button" class="layui-btn preservation_push">推送任务保存</button>
            </div>
        </blockquote>
    </div>




    <script type="text/html" id="OptData">

        {{#  if(d.status == 0){ }}
        <a class="layui-btn layui-btn-xs" lay-event="edit_ad" style="background: #5FB878">配置广告</a>
        {{#  } }}

        {{#  if(d.status == 1){ }}
        <a class="layui-btn layui-bg-cyan layui-btn-xs" lay-event="edit_ter">配置设备</a>
        {{#  } }}

        {{#  if(d.status != 2){ }}
        <a class="layui-btn  layui-btn-xs" lay-event="info">详情</a>
        {{#  } }}


        {{#  if(d.status == 2){ }}
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="push">推送</a>
        {{#  } }}
    </script>

    <script type="text/javascript" src="/js/jquery-3.3.1.min.js"></script>
    <script type="text/javascript" src="/js/common.js"></script>
    <script type="text/javascript" src="/layui/layui.js"></script>
    <script type="text/javascript" src="/js/MathUtils.js"></script>

    <script src="/js/advertisement/ad_batch_list.js"></script>


</body>
</html>